package com.zcoj.codeSimilar.pojo.DTO;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author chenbin
 * @version 1.0
 * @description: TODO
 * @date 2023/8/5 08:17
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class CodeSimilar {

	private static final long serialVersionUID = 2892248514883451461L;

	@TableId(type = IdType.AUTO)
	private Integer id;

	private Integer cid;

	private Integer sid;

	private Integer uid;

	private String uname;

	private Integer pid;

	private String pName;

	private Integer status;

	private Double similar;

	private String code;

	private String contrastCode;

	private Integer contrastSid;

	private Integer contrastUid;

	private String contrastUname;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	//@TableField(fill = FieldFill.INSERT)
	private Date createTime;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date updateTime;
}
